package com.workflow.itrun.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class IndexController {

    @RequestMapping("/")
    public String index(){
        return "index";
    }

    @RequestMapping("/main")
    public String toMain(String page){
        return "/main/"+page;
    }
    @RequestMapping("/page/{reqmodel}/{req}")
    public String toPage(@PathVariable("reqmodel") String reqmodel, @PathVariable("req")String req){
        return "/"+reqmodel+"/"+req;
    }


}
